.PHONY:all
all:cmain cppmain singletion factory
cmain:args.c
	gcc -o $@ $^
cppmain:args.cpp
	g++ -o $@ $^ -std=c++11;
singletion:singletion.cpp
	g++ -o $@ $^ -std=c++11;
factory:factory.cpp
	g++ -o $@ $^ -std=c++11;
.PHONY:clean
clean:
	rm -f cmain cppmain singletion factory;